﻿using System.ComponentModel.DataAnnotations;

namespace DemoDataGridToolBar.CustomService
{
  public partial class Product
  {
    internal class Metadata
    {
      [Key]
      [Editable(false, AllowInitialValue = true)]
      public global::System.Guid ProductID { get; set; }

      [Required(),StringLength(50,MinimumLength=3)]
      public string Name { get; set; }

      [Required(), StringLength(50, MinimumLength = 3)]
      public string ProductNumber { get; set; }

      [Range(0,100)]
      public int Size { get; set; }

    }
  }
}
